using System;
using System.Collections.Generic;
using System.Windows.Forms;
using ESRI.ArcGIS.esriSystem;


namespace Tayninh2011
{
    static class Program
    {
        private static LicenseInitializer m_AOLicenseInitializer = new Tayninh2011.LicenseInitializer();
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            //DMSoft.SkinCrafter.Init();
            //DMSoft.SkinCrafter SkinOb = new DMSoft.SkinCrafter();
            //SkinOb.InitLicenKeys("SKINCRAFTER", "SKINCRAFTER.COM", "support@skincrafter.com", "DEMOSKINCRAFTERLICENCE");
            //SkinOb.InitDecoration(true);
            //SkinOb.LoadSkinFromFile("D:\\Zondar.skf");
            //SkinOb.ApplySkin();

            //ESRI License Initializer generated code.
            m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] {esriLicenseProductCode.esriLicenseProductCodeArcEditor},
            new esriLicenseExtensionCode[] { esriLicenseExtensionCode.esriLicenseExtensionCodeNetwork, esriLicenseExtensionCode.esriLicenseExtensionCodeSchematics, esriLicenseExtensionCode.esriLicenseExtensionCodeMLE, esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst, esriLicenseExtensionCode.esriLicenseExtensionCodeDataInteroperability, esriLicenseExtensionCode.esriLicenseExtensionCodeTracking });
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //FrmMain frmMain = FrmMain.frmMain;
            //FrmLogin frmLogin = FrmLogin.CallMe;
            //FrmMainMain frmMainMain = FrmMainMain.CallMe;
            //MainWindow m = new MainWindow();
            //Form3 a = new Form3();
            FrmInit frmInit = FrmInit.CallMe;
            //FrmCash frm = FrmCash.CallMe;
            Form5 fr = new Form5();
            Application.Run(frmInit);
            


            
            //ESRI License Initializer generated code.
            //Do not make any call to ArcObjects after ShutDownApplication()
            m_AOLicenseInitializer.ShutdownApplication();
            //SkinOb.DeInitDecoration();
            //DMSoft.SkinCrafter.Terminate();
        }
    }
}